module top_module( 
    input [254:0] in,
    output [7:0] out );

    integer 	i;
    
    always @(in) begin
        out = 8'd0;
        
        for(i = 0; i < 255; i = i+1) begin
            out = out + in[i];
        end
    end
    
endmodule
